<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
 <title>管理员添加美食</title>
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="Bluth Company">
    <link rel="shortcut icon" href="__PUBLIC__/admin_style/assets/ico/favicon.html">
    <link href="__PUBLIC__/admin_style/assets/css/bootstrap.css" rel="stylesheet">
    <link href="__PUBLIC__/admin_style/assets/css/theme.css" rel="stylesheet">
    <link href="__PUBLIC__/admin_style/assets/css/font-awesome.min.css" rel="stylesheet">
    <link href="__PUBLIC__/admin_style/assets/css/alertify.css" rel="stylesheet">
    <link rel="Favicon Icon" href="favicon.ico">
</head>
<body>
	    <div id="wrap">
    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <div class="logo">
            <img src="__PUBLIC__/admin_style/assets/img/logo.png" alt="Realm Admin Template">
          </div> 
         

        </div>
      </div>
    </div>

    <div class="container-fluid">

      <!-- Side menu -->  
    <include file="Public/menu"/> 

     <div class="main_container" id="forms_page">
        <div class="row-fluid">
          <br>
          <h2 class="heading">管理员添加美食</h2>
        </div>
      <div class="row-fluid">
          <div class="widget widget-padding span12">
            <div class="widget-header">
              <i class="icon-list-alt"></i><h5>添加美食</h5>
              <div class="widget-buttons">
                  <a href="#" data-title="Collapse" data-collapsed="false" class="tip collapse"><i class="icon-chevron-up"></i></a>
              </div>
            </div>
            <div class="widget-body">
              <div class="widget-forms clearfix">
                <form class="form-horizontal" action="{:U(dofood)}" onsubmit="return check();"  method="post" enctype="multipart/form-data">
                  <div class="control-group">
                    <label class="control-label">美食名称</label>
                    <div class="controls">
                      <input class="span7" type="text" placeholder="美食名称" id="foods_name" name="foods_name" required>
                    </div>
                  </div>
                 
                
                 <div class="control-group">
                   <label class="control-label">美食类型</label>
                     <div class="controls">
                       <select tabindex="1" data-placeholder="Select here.." class="span7"
                               id="tid" name="tid" required >
                          <option value=""></option>
                          <option value="1">东北菜</option>
                          <option value="2">四川菜</option>
                          <option value="3">江浙菜</option>
                          <option value="4">广东菜</option>
                       </select>
                    </div>
                 </div>  
                  <div class="control-group">
                    <label class="control-label">美食做法</label>
                    <div class="controls">
                      <textarea class="span7 tip" data-title="" type="text" placeholder=""
                      id="intro" name="intro" required>
                      </textarea>
                    </div>
                  </div>
                    <div class="control-group">
              <label class="col-md-3 control-label">美食图片</label>
               <div class="controls">
                           <input type="file" name="picture" id="picture">  
                           </div>
                                   

                             </div> 

      

                  <div class="widget-footer" >
                               
                             
                           <input class="btn btn-primary" type="submit" value="发  布">  

                              </div>
                  
                </form>
              </div>
            </div>
        </div>


   

<!--footer-starts-->
	<div class="footer">
	<div class="footer-main">
	<div class="copy-rights">

	<p align="center">Copyright &copy;14110100235赵明月 </p>
	</div>
	</div>
	
		</div>
		</div>
  <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/raphael-min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/bootstrap.js"></script>
    <script type="text/javascript" src='__PUBLIC__/admin_style/assets/js/sparkline.js'></script>
    <script type="text/javascript" src='__PUBLIC__/admin_style/assets/js/morris.min.js'></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.dataTables.min.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.masonry.min.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.imagesloaded.min.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.facybox.js"></script>   
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.alertify.min.js"></script> 
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/jquery.knob.js"></script>
    <script type='text/javascript' src='__PUBLIC__/admin_style/assets/js/fullcalendar.min.js'></script>
    <script type='text/javascript' src='__PUBLIC__/admin_style/assets/js/jquery.gritter.min.js'></script>
    <script type="text/javascript" src="__PUBLIC__/admin_style/assets/js/realm.js"></script>

<script type="text/javascript">
var oSelect=document.getElementByIdx_x_x("tid");
oSelect.onchange=function(){                                       //当选项改变时触发
var valOption=this.options[this.selectedIndex].value;//获取option的value
alert(valOption);
var txtOption=this.options[this.selectedIndex].innerHTML;//获取option中间的文本
alert(txtOption);
}
</script>
</body>
</html>